home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / AmigaSystem / Scalos / GuiGFXLib / src / guigfx_picturemethod.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-28  |  1.6 KB  |  38 lines

  1. #ifndef _GUIGFX_DOPICTUREMETHOD_H
  2. #define _GUIGFX_DOPICTUREMETHOD_H    1
  3.  
  4. #include "guigfx_internal.h"
  5.  
  6. ULONG PIC_Crop(struct Picture *pic, ULONG x, ULONG y, ULONG width, ULONG height, TAGLIST tags);
  7. ULONG PIC_Render(struct Picture *pic, ULONG pixelformat, TAGLIST tags);
  8. ULONG PIC_Scale(struct Picture *pic, ULONG width, ULONG height, TAGLIST tags);
  9. ULONG PIC_Mix(struct Picture *pic1, struct Picture *pic2, TAGLIST tags);
  10. ULONG PIC_SetAlpha(struct Picture *pic, UBYTE *array, ULONG width, ULONG height, TAGLIST tags);
  11. ULONG PIC_MixAlpha(struct Picture *pic1, struct Picture *pic2, TAGLIST tags);
  12. ULONG PIC_RenderPaletteA(struct Picture *pic, APTR palette, TAGLIST tags);
  13.  
  14. #ifdef __MORPHOS__
  15. #define PIC_RenderPalette(pic, palette, tags...) \
  16.     ({unsigned long _tags[] = { tags }; PIC_RenderPaletteA(pic, palette, (TAGLIST)_tags);})
  17. #else
  18. ULONG PIC_RenderPalette(PIC *pic, APTR palette, Tag tag1, ...);
  19. #endif
  20.  
  21. ULONG PIC_MapDrawHandle(struct Picture *pic, struct DrawHandle *dh, TAGLIST tags);
  22. ULONG PIC_CreateAlphaMask(PIC *pic, ULONG rgb, TAGLIST tags);
  23. ULONG PIC_Tint(PIC *pic, ULONG rgb, TAGLIST tags);
  24. ULONG PIC_Texture(PIC *pic, PIC *texpic, WORD *coordinates, TAGLIST tags);
  25. ULONG PIC_Set(PIC *pic, ULONG rgb, TAGLIST tags);
  26. ULONG PIC_TintAlpha(PIC *pic, ULONG rgb, TAGLIST tags);
  27. ULONG PIC_Insert(PIC *pic, PIC *sourcepic, TAGLIST tags);
  28. ULONG PIC_FlipX(PIC *pic, TAGLIST tags);
  29. ULONG PIC_FlipY(PIC *pic, TAGLIST tags);
  30. ULONG PIC_CheckDither(PIC *pic, DRAWHANDLE *dh, TAGLIST tags);
  31. ULONG PIC_Negative(PIC *pic, TAGLIST tags);
  32. ULONG PIC_AutoCrop(PIC *pic, TAGLIST tags);
  33.  
  34. BOOL InsertAlphaArray(PIC *pic);
  35. BOOL ExtractAlphaArray(PIC *pic);
  36.  
  37. #endif
  38.